home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / pcboard / gamble11.zip / LUCK1.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-05-04  |  3KB  |  144 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.     String   STRING002
  21.     String   STRING003
  22.  
  23. ;------------------------------------------------------------------------------
  24.  
  25.     :LABEL001
  26.     STRING002 = 0
  27.     STRING003 = "n"
  28.     Cls
  29.     PrintLn 
  30.     PrintLn "   @X4C┌─────────────────────────────────────────────────────────────────────┐@X07"
  31.     PrintLn "   @X4C│             @X4EDumb Luck - 1:1 Odds - Win what you bet                 @X4C│@X07"
  32.     PrintLn "   @X4C│        @X4Eby Brian Sweeney @ The Laser BBS (914.734.7045)              @X4C│@X07"
  33.     PrintLn "   @X4C│@XCA                 UNREGISTERED EVALUATION VERSION                     @X4C│@X07"
  34.     PrintLn "   @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
  35.     PrintLn "   @X4C│@X4F    You may bet as much time as you have today.  If you loose, the   @X4C│@X07"
  36.     PrintLn "   @X4C│@X4F  amount of time you bet will be deducted from your time limit for   @X4C│@X07"
  37.     PrintLn "   @X4C│@X4F  today.  If you win, the amount you bet will be added to the time   @X4C│@X07"
  38.     PrintLn "   @X4C│@X4F  you have remaining for THIS CALL.  When you logoff, you will loose @X4C│@X07"
  39.     PrintLn "   @X4C│@X4F  any time you won unless you deposit it in the time bank.           @X4C│@X07"
  40.     PrintLn "   @X4C│@X40─────────────────────────────────────────────────────────────────────@X4C│@X07"
  41.     PrintLn "   @X4C│               @X4EYou have @X4F@TIMELEFT:4@ @X4Eminutes remaining today                 @X4C│@X07"
  42.     PrintLn "   @X4C└─────────────────────────────────────────────────────────────────────┘@X07"
  43.     InputStr "How many minutes do you wish to gamble (Q)uit", STRING002, 14, 2, "1234567890qQ", 8
  44.     If (STRING002 == "") Goto LABEL001
  45.     If (STRING002 == "Q") End
  46.     If (STRING002 == "0") Goto LABEL001
  47.     If (STRING002 > MinLeft()) Then
  48.         PrintLn 
  49.         PrintLn "You do not have that much time left!"
  50.         PrintLn 
  51.         PrintLn "@WAIT@"
  52.         Goto LABEL001
  53.     Endif
  54.     If ((STRING003 == "n") && (STRING002 <> 30)) Goto LABEL003
  55.     If (STRING003 == "n") Gosub LABEL002
  56.     If (Random(9) < 4) Then
  57.         AdjTime STRING002
  58.         Newlines 2
  59.         Print "@X0AYou just WON "
  60.         Print STRING002
  61.         InputYN " minutes! Do you wish to try again", STRING001, 10
  62.         If (STRING003 == "n") Gosub LABEL002
  63.         If ((STRING001 == "Y") || (STRING001 == "y")) Goto LABEL001
  64.         If ((STRING001 == "N") || (STRING001 == "n")) End
  65.     Else
  66.         AdjTime -STRING002
  67.         Newlines 2
  68.         Print "@X0BSorry, you lost "
  69.         Print STRING002
  70.         InputYN " minutes... Do you wish to try again", STRING001, 11
  71.         If (STRING003 == "n") Gosub LABEL002
  72.         If ((STRING001 == "Y") || (STRING001 == "y")) Goto LABEL001
  73.         If ((STRING001 == "N") || (STRING001 == "n")) End
  74.     Endif
  75.     :LABEL002
  76.     PrintLn 
  77.     PrintLn "@X0FPausing for 10 seconds to encourage registration..."
  78.     Delay 182
  79.     Return
  80.     :LABEL003
  81.     AnsiPos 1, 21
  82.     PrintLn "@X0FIn this unregistered version you may only bet 30 minutes each time."
  83.     Wait
  84.     Goto LABEL001
  85.  
  86. ;------------------------------------------------------------------------------
  87. ;
  88. ; Usage report (before postprocessing)
  89. ;
  90. ; ■ Statements used :
  91. ;
  92. ;    3       End
  93. ;    1       Cls
  94. ;    1       Wait
  95. ;    10      Goto 
  96. ;    2       Let 
  97. ;    4       Print 
  98. ;    21      PrintLn 
  99. ;    13      If 
  100. ;    2       AdjTime 
  101. ;    1       InputStr 
  102. ;    2       InputYN 
  103. ;    3       Gosub 
  104. ;    1       Return
  105. ;    1       Delay 
  106. ;    2       Newlines 
  107. ;    1       AnsiPos 
  108. ;
  109. ;
  110. ; ■ Functions used :
  111. ;
  112. ;    1       -
  113. ;    15      ==
  114. ;    1       <>
  115. ;    1       <
  116. ;    1       >
  117. ;    2       !
  118. ;    1       &&
  119. ;    4       ||
  120. ;    1       Random()
  121. ;    1       MinLeft()
  122. ;
  123. ;------------------------------------------------------------------------------
  124. ;
  125. ; Analysis flags : A
  126. ;
  127. ; A - Adjust online time remaining ■ 5
  128. ;     Program modify the amount of online time remaining, this may
  129. ;     be a way to bypass time limits
  130. ;     ■ Search for : ADJTIME
  131. ;
  132. ;------------------------------------------------------------------------------
  133. ;
  134. ; Postprocessing report
  135. ;
  136. ;    0       For/Next
  137. ;    0       While/EndWhile
  138. ;    2       If/Then or If/Then/Else
  139. ;    0       Select Case
  140. ;
  141. ;------------------------------------------------------------------------------
  142. ;                 AEGiS Corp - Break the routines, code against the machines!
  143. ;------------------------------------------------------------------------------
  144.